//导入工具类
import request from "@/utils/request";

//获取题目数据
export const topic = () =>{
    return request.get(`/choosetopic`);
}
//增加和修改
export const updatetips = (data) =>{
    console.log(data,1231232132132);
    return request.post(`/choosetopic/saveOrUpdate`,data);
}
//查询分页信息
export const pageInfo = (data) =>{
    console.log(data);
    return request.get(`/choosetopic`,data);
}
//查询总条数
export const pageTotal = () =>{
    return request.get(`/choosetopic/getCount`);
}
//查询搜索的条数
export const pageSearchResultTotal = (data) =>{
    console.log(data);
    return request.get(`/choosetopic/getCountByBlur`,data);
}
//模糊查询
export const searchResult = (data) =>{
    console.log(data);
    return request.get(`/choosetopic/getByBlur`,data);
}
